﻿@{
    ViewBag.Title = "CreateAndEdit";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<div class="left fl">
    <a href="#" id="left_on">内容类别管理</a> <a href="#">内容类别管理</a>
</div>
<!--/left-->
<div class="right">
    <p class="cur pl20">
        当前位置：<a href="javascript:void(0);">后台首页</a>>><a href="#">内容类别信息</a>>>添加内容类别信息</p>
    <!--/当前位置-->
    <div class="h_form">
        <div class="setting domain-setting" style="width: 860px;">
            <fieldset>
                <legend>添加内容类别信息</legend>
                <br />
                <form method="post" action="" id="formID">
                <div style="display: block;" class="settingrow">
                    <div class="detail">
                        <div class="title">
                            类别名称
                        </div>
                        <div class="desc">
                            <div class="task">
                                <div class="input">
                                    <input class="input_01 validate[required] text-input" id="Name" name="Name" placeholder="填写类别名称"
                                        type="text" value="" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="display: block;" class="settingrow">
                    <div class="detail">
                        <div class="title">
                            唯一标识符
                        </div>
                        <div class="desc" style="width: 200px;">
                            <input class="input_01 validate[required] text-input" id="CodeName" name="CodeName"
                                placeholder="填写编码信息" style="width: 178px" type="text" value="" />
                        </div>
                        <div style="float: left; color: #888888">
                            唯一对应类别信息，不可重复
                        </div>
                    </div>
                </div>
                <div style="display: block;" class="settingrow">
                    <div class="detail">
                        <div class="title">
                            所属大类
                        </div>
                        <div class="desc" style="width: 200px;">
                            <div class="task">
                                <div class="input">
                                    <select class="input_01" id="ParentID" name="ParentID" style="width: 181px; height: 32px">
                                        <option value="">请选择所属大类</option>
                                        <option value="3">福利院概况</option>
                                        <option value="8">政策法规</option>
                                        <option value="63">院务公开</option>
                                        <option value="13">入院指南</option>
                                        <option value="41">公寓养老</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div style="float: left; color: #888888">
                            可不选，默认为导航栏菜单项
                        </div>
                    </div>
                </div>
                <div style="display: block;" class="settingrow">
                    <div class="detail">
                        <div class="title">
                            排序号
                        </div>
                        <div class="desc" style="width: 200px;">
                            <input class="input_01 validate[required,custom[integer]] text-input" id="Sort" name="Sort"
                                placeholder="填写排序号" style="width: 178px" type="text" value="" />
                        </div>
                        <div style="float: left; color: #888888">
                            用于前台栏目的排序。排序号越大，越靠后
                        </div>
                    </div>
                </div>
                <div style="display: block;" class="settingrow">
                    <div class="detail">
                        <div class="title">
                            设为导航栏目
                        </div>
                        <div class="desc" style="width: 200px; margin-top: 3px;">
                            <input id="IsNav" name="IsNav" type="checkbox" value="true" />
                        </div>
                        <div style="float: left; color: #888888">
                            标记是否在前台导航栏显示
                        </div>
                    </div>
                </div>
                <div style="display: block;" class="settingrow">
                    <div class="detail">
                        <div class="title">
                            内容
                        </div>
                        <div class="desc">
                            @Html.TextArea("Content", new { id = "Content", CLASS = "validate[required]" })
                        </div>
                    </div>
                </div>
                <div class="action" style="margin-top: 40px;">
                    <button type="submit" class="button primary" name="save">
                        保存</button>
                    <button type="reset" class="button">
                        重填</button>
                </div>
                </form>
            </fieldset>
        </div>
    </div>
</div>
<script type="text/javascript">
    var editor;
    KindEditor.ready(function (K) {
        editor = K.create('textarea[id="Content"]', {
            width: "650px",
            height: "280px",
            uploadJson: '/admin/uploadfile/UploadImage',
            allowFileManager: true
        });
    })
</script>